import { createRouter, createWebHashHistory } from "vue-router";

const router = createRouter({
    history: createWebHashHistory(),
    routes: [
        {
            path: '/',
            redirect: '/index'
        },
        {
            path: '/index',
            meta: { title: '首页' },
            component: () => import('../views/Index.vue')
        },
        {
            path: '/detail',
            meta: { title: '详情页' },
            component: () => import('../views/Detail.vue')
        }
    ]
})

export default router